<script type="text/javascript">
	jQuery(document).ready(function(){
    	jQuery("#form1").validationEngine();
   });
</script>
<form id="form1" name="form1" method="post" action="<?php echo $do_addedit_link;?>" enctype="multipart/form-data">
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td align="left" class="block-block"><?php echo $action?> Game Format</td>
    </tr>
    <tr>
      <td class="border_add"><table width="90%" border="0" align="left" cellpadding="4" cellspacing="4">
          <tr>
            <td width="22%" align="right" valign="middle" nowrap="nowrap"><span class="error">*</span>Game Format Name</td>
            <td width="3%" align="center" valign="middle">:</td>
            <td width="50%" colspan="2"><input name="format_name" type="text" class="validate[required] textbox" id="format_name" style="width:450px;" value="<?php echo $format_name; ?>" maxlength="100" />
            &nbsp;&nbsp;<?php echo form_error('color_name'); ?></td>
          </tr>
          
		 <tr>
            <td width="22%" align="right" valign="middle" nowrap="nowrap"><span class="error">*</span>Game Name</td>
            <td width="3%" align="center" valign="middle">:</td>
           <td width="50%" colspan="2"><select name="game_id" id="game_id" class="SELECT">
                                  <!--<option value="" >Select Search Type</option> -->
                                  <?php  for($i =0; $i < count($game) ; $i++){
                                    ?>
                                  <option value="<?php echo $game[$i]['id']; ?>"><?php echo $game[$i]['game_name'] ;?></option>
                                
           <?php } ?>
           </select> </td></tr>
                 <tr>
           <td width="22%" align="right" valign="middle" nowrap="nowrap"><span class="error">*</span>xml game format id</td>
            <td width="3%" align="center" valign="middle">:</td>
            
          <td width="50%" colspan="2"><input name="xml_game_format_id" type="text" class="validate[custom[onlyNumberSp]] text-input" id="xml_game_format_id" style="width:450px;" value="<?php echo $xml_game_format_id; ?>" maxlength="100" />
            &nbsp;&nbsp;<?php echo form_error('color_name'); ?></td>
        
          </tr>
	
	 
          <tr>
            <td align="right" valign="middle">&nbsp;</td>
            <td align="center" valign="middle">&nbsp;</td>
            <td colspan="2"><input type="submit" name="Submit" value=" Submit " onmouseover="this.className='normal-bttn1'" onmouseout="this.className='normal-bttn'" class="normal-bttn" />
              &nbsp;&nbsp;
              <input name="Submit2" type="button" value="Cancel" onmouseover="this.className='normal-bttn1'" onmouseout="this.className='normal-bttn'" class="normal-bttn" onclick="location.href='<?php echo $back_link?>'"></td>
          </tr>

          <tr>
            <td align="right" valign="middle">&nbsp;</td>
            <td align="center" valign="middle">&nbsp;</td>
            <td colspan="2">&nbsp;</td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
